package cuishifeng.blog.learn.jvm;

import java.util.ArrayList;
import java.util.concurrent.TimeUnit;

import com.google.common.collect.Lists;

/**
 * @author cuishifeng <cuishifeng0207@163.com>
 * Created on 2021-02-24
 */
public class JvmGcTest {


    public static void main(String[] args) throws InterruptedException {
        int num = 0;
        while (true) {
            ArrayList<Object> objects = Lists.newArrayListWithCapacity(100000000);
            System.out.println("=== num：" + (num++));
            TimeUnit.MILLISECONDS.sleep(10);
        }

    }
}
